class Solution:
    def twoSum(self, nums, target: int):
        hashtable = dict()
        for i, num in enumerate(nums):
            if target-num in hashtable:
                return [hashtable[target-num], i]
            else:
                hashtable[num] = i
        return []
